<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script type="module">
    //不能随意取名 可以区别名
    // import {age,f as a,person} from './module1.js'
    // console.log(age,a,person);
    //整体导入
    // import * as obj from './module1.js'
    // console.log(obj.fun);
    //同时导入
    import name,{age} from './module1.js'
  </script>
</body>
</html>